<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"   %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title>学生课程信息 </title>
  <meta name="Generator" content="EditPlus">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
    <style>
     #contain{
     margin-left:120px;
      margin-right:172px;
      background-color: #ccffcc;
     }
	
	  #top{
        height:180px;
	    width:1000px;
	    border-bottom: 0px solid;
	
	    background-color: #ccffcc;
	
	   
	 
	  }
	  #center{
      height:400px;
	  width:1000px;
      border-top: 5px solid;
       border-color: #ffffcc;
      background-color: #ccffcc;
	  }
	  #bottom{
      height:100px;
	   width:1000px;
	  border-top: 5px solid;
	   border-color: #ffffcc;
	  background-color: #ccffcc;
	  }
	

	.user{
	   margin-bottom:100px;
	   margin-left: 600px;
	}
	
	#main{
	
	  height:60px;
	  margin-top:20px;
	 
	}
	#reg{
	
	font-size: 150%;
	font-weight: bold;
	}
	</style>
	<script type="text/javascript">
	function checkForm(){
	alert("我是测试的");
	var name = document.getElementsByName("name").value;
	if(name==null||name==""){
	alert("姓名不能为空");
	}
	var birth = document.getElementsByName("birth").value;
	if(birth==null||birth==""){
	alert("出生日期不能为空");
	}
	if(birth="[0-9]{4}-[0-9]{2}-[0-9]{2}"){
	  alert("输入的日期格式不正确");
	}
	return false;
	}
	
	</script>
 </head>

 <body>
    <div id="contain">
      <div id="top">
    <img src="${pageContext.request.contextPath}/Picture/ee.jpg"></img>
      <span class="user">用户名|欢迎用户使用|退出</span>
   
    </div>
      <div id="center">
     <div id="main" align="center">
     <span id="reg"> 学生成绩添加</span>
     </div>
     <div id="formid">
       <form action="" method="post" >
          <table  width="800px" height="300px" align="center" border="1px">
         
            <tr align="center" >
                <td>学生</td>
                <td>课程名</td>
                <td>成绩</td>
            </tr>
              <tr align="center">
             
              <td>张三</td>
                <td>数学</td>
                <td>80</td>
            </tr>
                 <tr align="center">
             
              <td>李四</td>
                <td>数学</td>
                <td>80</td>
            </tr>
 

          </table>
       </form>
     
     </div>
     </div>
     <div  id="bottom">
           <p align="center">   版权&copy;:版权所有，违者必究
         </p>
          <address align="center">E-mail:abcdef@126.com</address>
     
     </div>
</div>


 </body>
</html>

